package com.eric.service;
import cn.dev33.satoken.util.SaResult;
import com.eric.domain.dto.LocationDto;
import com.eric.domain.po.Location;
import com.github.yulichang.base.MPJBaseService;

/**
 * <p>
 * 所在地，用于存储仓库、项目所在地 服务类
 * </p>
 *
 * @author 新哥
 * @since 2024-03-23
 */
public interface ILocationService extends MPJBaseService<Location> {

    SaResult saveOneService(LocationDto locationDto);

    SaResult modifyOneService(LocationDto locationDto);

    SaResult deleteOneLocationByIdService(Integer id);

    SaResult getAllLocationListService(Integer pageCount, Integer pageSize);

    SaResult getOneByIdService(Integer id);

    SaResult getByAddressService(String address,Integer pageCount,Integer pageSize);

    SaResult getAllByUserIdService(Integer userId,Integer pageCount,Integer pageSize);

    SaResult getAllByProjectIdServie(Integer projectId,Integer pageCount,Integer pageSize);

    SaResult getAllByWarehouseIdServie(Integer warehouseId,Integer pageCount,Integer pageSize);

    String getAllByLoginId();

//    LocationDto getLocationByUserIdService(Integer userId);
}
